﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PTCScheduler
{
    class ConferenceUnitTests : Conference
    {
        Conference test = new Conference();

        public ConferenceUnitTests()
        {
            setDate(); getDate();
            setTime(); getTime();
            setLocation(); getLocation();
            setStudentID(); getStudentID();
            setTeacherName(); getTeacherName();
            setTeacherID(); getTeacherID();
            setCounselorNeeded(); getCounselorNeeded();
            setCounselorName(); getCounselorName();
            setCounselorID(); getCounselorID();
            setComments(); getComments();
            setConflict(); getConflict();
        }
        
        //Test set/getDate
        void setDate()
        {
            test.Date = "03/04/13";
        }

        void getDate()
        {
            Console.WriteLine(test.Date);
        }

        //Test set/getTime
        void setTime()
        {
            test.Time = "08:30:00";
        }

        void getTime()
        {
            Console.WriteLine(test.Time);
        }

        //Test set/getLocation
        void setLocation()
        {
            test.Location = "Room 301";
        }

        void getLocation()
        {
            Console.WriteLine(test.Location);
        }

        //Test set/getStudentID
        void setStudentID()
        {
            test.StudentID = 555555555;
            getStudentID();
            test.StudentID = -1;
            getStudentID();
            test.StudentID = 0;
            getStudentID();
            test.StudentID = 1000000000;
            getStudentID();
            test.StudentID = 999999999;
            getStudentID();
            test.StudentID = 99999999;
            getStudentID();
        }

        void getStudentID()
        {
            Console.WriteLine(test.StudentID);
        }

        //Test set/getTeacherName
        void setTeacherName()
        {
            test.TeacherName = "Smith, John";
        }

        void getTeacherName()
        {
            Console.WriteLine(test.TeacherName);
        }
        
        //Test set/getTeacherID
        void setTeacherID()
        {
            test.TeacherID = 555555555;
            getTeacherID();
            test.TeacherID = -1;
            getTeacherID();
            test.TeacherID = 0;
            getTeacherID();
            test.TeacherID = 1000000000;
            getTeacherID();
            test.TeacherID = 999999999;
            getTeacherID();
            test.TeacherID = 99999999;
        }

        void getTeacherID()
        {
            Console.WriteLine(test.TeacherID);
        }

        //Test set/getCounselorNeeded
        void setCounselorNeeded()
        {
            test.CounselorNeeded = true;
            getCounselorNeeded();
            test.CounselorNeeded = false;
            getCounselorNeeded();
        }

        void getCounselorNeeded()
        {
            Console.WriteLine(test.CounselorNeeded);
        }

        //Test set/getCounselorName
        void setCounselorName()
        {
            test.CounselorName = "Spark, Meg";
        }

        void getCounselorName()
        {
            Console.WriteLine(test.CounselorName);
        }

        //Test set/getCounselorID
        void setCounselorID()
        {
            test.CounselorID = 555555555;
            getCounselorID();
            test.CounselorID = -1;
            getCounselorID();
            test.CounselorID = 0;
            getCounselorID();
            test.CounselorID = 1000000000;
            getCounselorID();
            test.CounselorID = 999999999;
            getCounselorID();
            test.CounselorID = 99999999;
            getCounselorID();
        }

        void getCounselorID()
        {
            Console.WriteLine(test.CounselorID);
        }

        //Test set/getComments
        void setComments()
        {
            test.Comments = "Behavior";
        }

        void getComments()
        {
            Console.WriteLine(test.Comments);
        }

        //Test set/getConflict
        void setConflict()
        {
            test.Conflict = true;
            getConflict();
            test.Conflict = false;
            getConflict();
        }

        void getConflict() 
        {
            Console.WriteLine(test.Conflict);
        }

    }
}